<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AlterUserBaseInfoAddBankCardInfo extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('open_shop_user_base_info', function (Blueprint $table) {
            $table->string('cardAccountName', 80)->default('')->comment('银行卡账户名称')->after('isSelfWithAddress');
            $table->string('cardBankName', 80)->default('')->comment('银行卡开户行')->after('isSelfWithAddress');
            $table->string('cardNo', 80)->default('')->comment('银行账号')->after('isSelfWithAddress');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('open_shop_user_base_info', function (Blueprint $table) {
            $table->dropColumn('cardAccountName');
            $table->dropColumn('cardBankName');
            $table->dropColumn('cardNo');
        });
    }
}
